/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../../assets/styles/base/_colors.scss';
@import '../../../assets/styles/base/_variables.scss';
@import '../../../assets/styles/base/_typography.scss';
@import '../transaction/transaction.component';

.view-transaction-modal {

     @extend transaction-modal;

    .resource-component {
        padding-right: $space-small;
        margin-top: $space-medium;
    }

    .resource-component.events {
        overflow-y: auto;
    }

    .modal-sub-header {
        display: flex;
        align-items: center;
        background-color: $third-highlight;
        padding: 0;
        nav.transactionnav {
            background-color: $third-highlight;
            box-shadow: 0 1px 4px 0 $white;
            .navcontent {
                .links {
                    li {
                        &.withseparator::after {
                            content: '';
                            border-right-color: $sixth-highlight;
                            margin-top: 0;
                            margin-bottom: 0;
                        }
                    }
                    a {
                        color: $primary-text;
                    }
                    .action {
                        margin-left: $space-medium;
                        margin-right: $space-medium;
                        line-height: 63px;
                        color: $primary-text;
                        transition: none;
                        border-bottom: 3px solid transparent;
                        &:hover {
                            border-bottom-color: $first-highlight;
                        }
                        &.active {
                            border-bottom-color: $first-highlight;
                        }
                    }
                }
            }
        }
    }
  .resource-list {
    margin: $space-small 0;
    .resource-dropdown {
      margin: $space-small 0;
      border-radius: 3px;
      border:1px solid #e3ecec;
      .resource-open {
        position: relative;
        width: 100%;
        background-color: $third-highlight;
        padding: $space-small $space-medium;
        min-height: 0;
        max-height: 50px;
        min-width: 630px;
        max-width: 650px;
        .resource-title {
          .title {
            width: 85%;
            text-overflow: ellipsis;
            overflow: hidden;
            float: left;
          }
        }
        &::after {
          content: url();
          cursor: pointer;
          position: absolute;
          right: 6%;
          bottom: 85%;
          width: 0;
          height: 0;
        }
      }
      .resource-open.open {
           &::after {
               transform: rotate(180deg);
               bottom: 10%;
               right: 3%;
           }
      }
      .resource-content {
        .CodeMirror {
          height: 200px;
          min-height: 0;
          max-width: none;
        }
        .CodeMirror, .CodeMirror-scroll {
            min-height: 0;
        }
      }
    }
  }
}
